DatabaseGetValue

 

The 'DatabaseGetValue' function returns the specified data of Database object.

 

int @DatabaseGetValue(string class_name, int index, string field_name, string value);

 

Parameters
string class_name : Class name of Database object.

int index : Index of the record.

string field_name : Field name.

string value : String buffer where you want to store the data.

 

Return Value

Result (1 = The data is loaded, 0 = The data isn't loaded)

 

Example

@DatabaseGetValue("Database1", 10, "item", $ST_0000);

Description : The data, the 10th record and the 'item' field of 'Database1', is stored in the tag named 'ST_0000'.

 

Relate items)

Database object Example